package com.xsystem.util;

public class XPatternParser extends org.apache.log4j.helpers.PatternParser {

	public XPatternParser(String pattern) {
		super(pattern);
	}
	
	@Override
	protected void finalizeConverter(char c) {
		if (c == 't') {
			ThreadIdConverter converter = new ThreadIdConverter(formattingInfo);
			currentLiteral.setLength(0);
			
			addConverter(converter);
		} else {
			super.finalizeConverter(c);
		}
	}
}
